﻿@using Quadrant.web.Helpers
@model Quadrant.web.Models.LoginViewModel
@{
	ViewBag.Title = "Login";
}
@section head
{
	<link href="/Content/socialbuttons.css" rel="stylesheet" />
}
@section Scripts {
	@Html.JQueryVal()
}
<div class="row">
	<img class="center-block" src="~/Images/quadrant_logo_366x102.png" alt="Quadrant Logo" />
	<div class="col-md-6 col-md-offset-2">
		<h4>Use a local account for login</h4>
		<hr />
		<section id="loginForm">
			@using (Html.BeginForm("Login", "Account",
				new { ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
			{
				@Html.AntiForgeryToken()
				@Html.ValidationSummary(true)
				<div class="form-group">
					@Html.LabelFor(m => m.UserName, new { @class = "col-md-3 control-label" })
					<div class="col-md-9">
						@Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
						@Html.ValidationMessageFor(m => m.UserName)
					</div>
				</div>
				<div class="form-group">
					@Html.LabelFor(m => m.Password, new { @class = "col-md-3 control-label" })
					<div class="col-md-9">
						@Html.PasswordFor(m => m.Password, new { @class = "form-control" })
						@Html.ValidationMessageFor(m => m.Password)
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-offset-3 col-md-9">
						@Html.BootStrapCheckBoxFor(m => m.RememberMe)
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-offset-3 col-md-9">
						<input type="submit" value="Login" class="btn btn-primary" />
					</div>
				</div>
				<hr />
				<p>
					@Html.ActionLink("Register", "Register") if you don't have a local account
				</p>
			}
		</section>

	</div>
	<div class="col-md-4">
		<section id="socialLoginForm">
			@Html.CompressedPartial("_ExternalLoginsListPartial", new { Action = "ExternalLogin", ViewBag.ReturnUrl })
		</section>
	</div>
</div>
